﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 库房
    /// </summary>
    [Table("T_Warehouse")]
    public class Warehouse:BaseEntity
    {
        /// <summary>
        /// 库房编码
        /// </summary>
        [MaxLength(60)]
        public string Code { get; set; }
        /// <summary>
        /// 库房名称
        /// </summary>
        [MaxLength(60)]
        public string Name { get; set; }
        /// <summary>
        /// 库房类型Id
        /// </summary>
        public int? TypeId { get; set; }
        /// <summary>
        /// 库房类型名称
        /// </summary>
        [MaxLength(60)]
        public string TypeName { get; set; }
        /// <summary>
        /// 对应ERP系统的库房编码
        /// </summary>
        [MaxLength(60)]
        public string Erpcode { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-正常
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(60)]
        public string Contact { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(60)]
        public string MobilePhone { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [MaxLength(60)]
        public string AddrDetail { get; set; }
        /// <summary>
        /// 库房面积
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal? BuiltArea { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(60)]
        public string Remark { get; set; }
       
        /// <summary>
        /// 区域计数
        /// </summary>
        public int? AreaCount { get; set; }
        /// <summary>
        /// 站点计数
        /// </summary>
        public int? StationCount { get; set; }
        /// <summary>
        /// 路径计数
        /// </summary>
        public int? RoutewayCount { get; set; }
        /// <summary>
        /// 是否为主要
        /// </summary>
        public bool? IsMain { get; set; }
        /// <summary>
        /// 地图代码
        /// </summary>
        [MaxLength(60)]
        public string MapCode { get; set; }
    }
}
